Skip to main content

Boolean Condition

What is Boolean Condition Entity

Boolean Conditions are logical statements that are either true or false. Boolean Condition entity makes use of multiple comparison operators to compare the values at any point in the flow or service and return true or false values depending on the results of the comparison. The Boolean Condition entity has a single operation, which is to evaluate a Boolean condition.

Built-in Operation in Boolean Condition Entity

This section describes the operation that can be performed on the Boolean Condition entity in the Backflipt platform.

Boolean Condition Operation Description
Boolean condition It is a core logic evaluation that produces a true or false outcome based on logical comparisons between two values.

Built-in Cases in Boolean Condition Operation

This section describes the list of cases that can be performed with the Boolean condition operation.

Boolean Condition Cases Description
Equals It can be used to check if the two values are the same.
Equals (Ignore Case) It can be used to check and ignore if two values are the same.
Not Equals It can be used to check if the two values are different from each other.
Not Equals (Ignore Case) It can be used to check and ignore if two values are different from each other.
Less Than It can be used to determine if one value is numerically smaller than another.
Less Than Equals It can be used to determine if one value is numerically smaller than or equal to another.
Greater Than It can be used to determine if one value is numerically larger than another.
Greater Than Equals It can be used to determine if one value is numerically larger than or equal to another.
Add It can be used to add two values or variables together.
Subtract It can be used to subtract one value from another.
Multiply It can be used to multiply two values together.
Divide It can be used to divide one value by another.
Remainder It can be used to give the final remainder between the two numbers.
Contains It can be used to check if one value or substring is present within another.
Contains (Ignore Case) It can be used to check and ignore if one value or substring is present within another.
Starts With It can be used to check if a value or string starts with a specified prefix.
Starts With (Ignore Case) It can be used to check and ignore if a value or string starts with a specified prefix.
Ends With It can be used to check if a value or string ends with a specified suffix.
Ends With (Ignore Case) It can be used to check and ignore if a value or string ends with a specified suffix.
In It can be used to check if a value is present in a specified collection or list.
Not In It can be used to check if a value is not present in a specified collection or list.
Or It can be used to perform a logical OR operation between two conditions, resulting in true if either condition is true.
And It can be used to perform a logical AND operation between two conditions, resulting in true only if both conditions are true.
Between It can be used to check if a value lies within a specified range.
Exists It can be used to check if a value or variable has been defined or initialized.
Not It can be used to negate a Boolean value, turning true into false and false into true.
Is Empty It can be used to check if a value, string, or collection has no content.
Is Not Empty It can be used to check if a value, string, or collection has some content.
Is True It can be used to check if a Boolean value is true.
Is False It can be used to check if a Boolean value is false.
Has Key It can be used to check if a specific key is present in an object.
Has Value It can be used to check if a specific value is present in an object.

For the Boolean Condition operation, you can give any text values, JSON values, or other values you want. You can also input the values using different methods, such as user input, JSON Path, or Template.

To Input the Boolean Condition operation

You can change the input values of all methods and variables using the JSON Path or Template, apart from the standard User Input method.

After adding a Boolean Condition entity to the canvas, select the Boolean Condition operation. Then, you can enter the input details specific to the operation.

Add Case

In the following procedure, we will see the simple Add case with a Boolean operation.

  1. In the Input section, select Add Condition.
  2. Enter Value 1 as number 9 in the enter text field.
  3. Select Add case from the dropdown.
  4. Enter Value 2 as number 9 in the enter text field.
  5. Select Save.

Multiply Case with Nested Condition

A nested condition is a condition that is contained within another condition. Nested conditions are often used to make decisions based on multiple criteria. You can create several nested conditions based on your requirements with the Boolean Condition operation.

In the following procedure, we will see the simple Multiply case with the nested condition.

  1. In the Input section, select Add Condition.
  2. To add another condition inside the condition, click the braces {}.
  3. In the 1st condition:
    • Enter Value 1 as number 7 in the enter text field.
    • Select Multiply case from the dropdown.
    • Enter Value 2 as number 7 in the enter text field.
  4. In the 2nd condition:
    • Select Equals case from the dropdown.
    • Enter Value 3 as number 49 in the enter text field.
  5. Select Save.

Debug 

You can click on the Debug button on the canvas page. You can use the Debug Panel to Run the service and see the input and output for the selected instance.

Debug (Run the Service):

  1. On the canvas page, select the Debug button. The Debug Panel will be displayed below on the canvas page.
  2. In the Debug Panel, select the Run the service button. The Test Input dialog will be displayed.
  3. Select the Schema or JSON tab.
    • If you have selected the Schema, enter your company name.
    • If you have selected JSON, enter the JSON data.
  4. Select the Test button. The left pane of the Debug Panel shows the status of the service.
  5. From the left pane of the Debug Panel, select the Successful entry and then select the Boolean Condition instance.
  6. On the right side of the Debug Panel, you can see the input and output details related to the Boolean Condition instance.

The below image provides a reference to the Input and Output parameters of the Boolean Condition entity with the Add case.

Add Case Operation

Add Case Operation

The below image provides a reference to the Input and Output parameters of the Boolean Condition entity with the Multiply case.

Multiply Case Operation

Multiply Case Operation

Top of page